// 列表
export function getTrendsList(data: any) {
  return uni.http({
    url: 'api/trends/lst',
    data,
    requestType: 'bl',
    method: 'GET',
  })
}
// 详情
export function getTrendsInfo(data: any) {
  return uni.http({
    url: 'api/trends/info',
    data,
    requestType: 'bl',
    method: 'GET',
  })
}
// 评论列表
export function getTrendsComments(data: any) {
  return uni.http({
    url: 'api/trends/comments',
    data,
    requestType: 'bl',
    method: 'GET',
  })
}
// 发布动态
export function trendsAdd(data: any) {
  return uni.http({
    url: 'api/trends/add',
    data,
    requestType: 'bl',
    method: 'POST',
  })
}
// 删除动态
export function trendsDel(data: any) {
  return uni.http({
    url: 'api/trends/del',
    data,
    requestType: 'bl',
    method: 'POST',
  })
}

// 点赞动态
export function trendsZan(data: any) {
  return uni.http({
    url: 'api/trends/zan',
    data,
    requestType: 'bl',
    method: 'POST',
  })
}

// 收藏动态
export function trendsCollect(data: any) {
  return uni.http({
    url: 'api/trends/collect',
    data,
    requestType: 'bl',
    method: 'POST',
  })
}

//评论动态
export function trendsComment(data: any) {
  return uni.http({
    url: 'api/trends/comment',
    data,
    requestType: 'bl',
    method: 'POST',
  })
}
// 动态分类
export function trendsCategory(data: any) {
  return uni.http({
    url: 'api/trends/category',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
// 收藏列表

export function getTrendsCollects(data: any) {
  return uni.http({
    url: 'api/trends/collects',
    data,
    requestType: 'bl',
    method: 'get',
  })
}

// 批量取消收藏

export function trendsCollectDel(data: any) {
  return uni.http({
    url: 'api/trends/collectDel',
    data,
    requestType: 'bl',
    method: 'post',
  })
}

// 浏览记录
export function getTrendsHistory(data: any) {
  return uni.http({
    url: 'api/trends/history',
    data,
    requestType: 'bl',
    method: 'get',
  })
}

// 删除浏览记录
export function trendsHistoryDel(data: any) {
  return uni.http({
    url: 'api/trends/historyDel',
    data,
    requestType: 'bl',
    method: 'post',
  })
}

// 删除评论

export function trendsCommentDel(data: any) {
  return uni.http({
    url: 'api/trends/comment_del',
    data,
    requestType: 'bl',
    method: 'post',
  })
}
// 关注列表
export function trendsFollow(data: any) {
  return uni.http({
    url: 'api/trends/followLst',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
// 关注分类
export function trendsCateList(data: any) {
  return uni.http({
    url: 'api/trends/cateList',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
// 草稿箱
export function trendsDraftsAdd(data: any) {
  return uni.http({
    url: 'api/trends/trendsDraftsAdd',
    data,
    requestType: 'bl',
    method: 'post',
  })
}
// 草稿箱列表数量
export function trendsDraftsList(data: any) {
  return uni.http({
    url: 'api/trends/trendsDrafts',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
// 发送动态 删除草稿箱
export function trendsDraftsDel(data: any) {
  return uni.http({
    url: 'api/trends/trendsDraftsDel',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
export function shareVideo(data: any) {
  return uni.http({
    url: 'api/trends/short_video_forward',
    data,
    requestType: 'bl',
    method: 'get',
  })
}
